.class Lcom/example/m6shop/ShopPsActivity$4;
.super Landroid/os/Handler;
.source "ShopPsActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6shop/ShopPsActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6shop/ShopPsActivity;


# direct methods
.method constructor <init>(Lcom/example/m6shop/ShopPsActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6shop/ShopPsActivity$4;->this$0:Lcom/example/m6shop/ShopPsActivity;

    .line 117
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 7
    .param p1, "msg"    # Landroid/os/Message;

    .prologue
    .line 119
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    .line 120
    iget v3, p1, Landroid/os/Message;->arg1:I

    sparse-switch v3, :sswitch_data_0

    .line 182
    :goto_0
    :sswitch_0
    return-void

    .line 124
    :sswitch_1
    iget-object v3, p0, Lcom/example/m6shop/ShopPsActivity$4;->this$0:Lcom/example/m6shop/ShopPsActivity;

    # getter for: Lcom/example/m6shop/ShopPsActivity;->mcontext:Landroid/content/Context;
    invoke-static {v3}, Lcom/example/m6shop/ShopPsActivity;->access$1(Lcom/example/m6shop/ShopPsActivity;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "\u767b\u9646\u8fd4\u56de\u4fe1\u606f"

    const-string v5, "\u767b\u9646\u6210\u529f"

    invoke-static {v3, v4, v5}, Lmyclass/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 127
    :sswitch_2
    iget-object v3, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    .line 128
    .local v0, "checkinfo":Ljava/lang/String;
    const-string v3, "nologin"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 130
    new-instance v2, Landroid/content/Intent;

    invoke-direct {v2}, Landroid/content/Intent;-><init>()V

    .line 131
    .local v2, "intent":Landroid/content/Intent;
    iget-object v3, p0, Lcom/example/m6shop/ShopPsActivity$4;->this$0:Lcom/example/m6shop/ShopPsActivity;

    const-class v4, Lcom/example/m6shop/LoginActivity;

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 132
    iget-object v3, p0, Lcom/example/m6shop/ShopPsActivity$4;->this$0:Lcom/example/m6shop/ShopPsActivity;

    invoke-virtual {v3, v2}, Lcom/example/m6shop/ShopPsActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 137
    .end local v2    # "intent":Landroid/content/Intent;
    :cond_0
    iget-object v3, p0, Lcom/example/m6shop/ShopPsActivity$4;->this$0:Lcom/example/m6shop/ShopPsActivity;

    # getter for: Lcom/example/m6shop/ShopPsActivity;->mcontext:Landroid/content/Context;
    invoke-static {v3}, Lcom/example/m6shop/ShopPsActivity;->access$1(Lcom/example/m6shop/ShopPsActivity;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "\u63d0\u793a\u4fe1\u606f"

    iget-object v5, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v5}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v3, v4, v5}, Lmyclass/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 142
    .end local v0    # "checkinfo":Ljava/lang/String;
    :sswitch_3
    iget-object v4, p0, Lcom/example/m6shop/ShopPsActivity$4;->this$0:Lcom/example/m6shop/ShopPsActivity;

    iget-object v3, p0, Lcom/example/m6shop/ShopPsActivity$4;->this$0:Lcom/example/m6shop/ShopPsActivity;

    const v5, 0x7f070289

    invoke-virtual {v3, v5}, Lcom/example/m6shop/ShopPsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/GridView;

    invoke-static {v4, v3}, Lcom/example/m6shop/ShopPsActivity;->access$2(Lcom/example/m6shop/ShopPsActivity;Landroid/widget/GridView;)V

    .line 143
    iget-object v3, p0, Lcom/example/m6shop/ShopPsActivity$4;->this$0:Lcom/example/m6shop/ShopPsActivity;

    new-instance v4, Ladapter/PsAdapter;

    sget-object v5, Lcom/example/m6shop/ShopPsActivity;->shopin:Lcom/example/m6shop/ShopPsActivity;

    iget-object v6, p0, Lcom/example/m6shop/ShopPsActivity$4;->this$0:Lcom/example/m6shop/ShopPsActivity;

    # getter for: Lcom/example/m6shop/ShopPsActivity;->list:Ljava/util/List;
    invoke-static {v6}, Lcom/example/m6shop/ShopPsActivity;->access$0(Lcom/example/m6shop/ShopPsActivity;)Ljava/util/List;

    move-result-object v6

    invoke-direct {v4, v5, v6}, Ladapter/PsAdapter;-><init>(Landroid/content/Context;Ljava/util/List;)V

    iput-object v4, v3, Lcom/example/m6shop/ShopPsActivity;->pa:Ladapter/PsAdapter;

    .line 144
    iget-object v3, p0, Lcom/example/m6shop/ShopPsActivity$4;->this$0:Lcom/example/m6shop/ShopPsActivity;

    # getter for: Lcom/example/m6shop/ShopPsActivity;->gv:Landroid/widget/GridView;
    invoke-static {v3}, Lcom/example/m6shop/ShopPsActivity;->access$3(Lcom/example/m6shop/ShopPsActivity;)Landroid/widget/GridView;

    move-result-object v3

    iget-object v4, p0, Lcom/example/m6shop/ShopPsActivity$4;->this$0:Lcom/example/m6shop/ShopPsActivity;

    iget-object v4, v4, Lcom/example/m6shop/ShopPsActivity;->pa:Ladapter/PsAdapter;

    invoke-virtual {v3, v4}, Landroid/widget/GridView;->setAdapter(Landroid/widget/ListAdapter;)V

    goto :goto_0

    .line 147
    :sswitch_4
    iget-object v3, p0, Lcom/example/m6shop/ShopPsActivity$4;->this$0:Lcom/example/m6shop/ShopPsActivity;

    # getter for: Lcom/example/m6shop/ShopPsActivity;->mcontext:Landroid/content/Context;
    invoke-static {v3}, Lcom/example/m6shop/ShopPsActivity;->access$1(Lcom/example/m6shop/ShopPsActivity;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "\u6570\u636e\u83b7\u53d6\u5931\u8d25"

    const-string v5, "\u5c06\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5\u6216\u8005\u8054\u7cfb\u5ba2\u670d"

    invoke-static {v3, v4, v5}, Lmyclass/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 151
    :sswitch_5
    iget-object v3, p0, Lcom/example/m6shop/ShopPsActivity$4;->this$0:Lcom/example/m6shop/ShopPsActivity;

    # getter for: Lcom/example/m6shop/ShopPsActivity;->mcontext:Landroid/content/Context;
    invoke-static {v3}, Lcom/example/m6shop/ShopPsActivity;->access$1(Lcom/example/m6shop/ShopPsActivity;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "\u63d0\u4ea4\u6210\u529f"

    const/16 v5, 0xbb8

    invoke-static {v3, v4, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    .line 152
    iget-object v3, p0, Lcom/example/m6shop/ShopPsActivity$4;->this$0:Lcom/example/m6shop/ShopPsActivity;

    invoke-virtual {v3}, Lcom/example/m6shop/ShopPsActivity;->finish()V

    goto/16 :goto_0

    .line 155
    :sswitch_6
    iget-object v3, p0, Lcom/example/m6shop/ShopPsActivity$4;->this$0:Lcom/example/m6shop/ShopPsActivity;

    # getter for: Lcom/example/m6shop/ShopPsActivity;->mcontext:Landroid/content/Context;
    invoke-static {v3}, Lcom/example/m6shop/ShopPsActivity;->access$1(Lcom/example/m6shop/ShopPsActivity;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "\u8bf7\u7a0d\u540e"

    const-string v5, "\u5237\u65b0\u5e97\u94fa\u6570\u636e"

    invoke-static {v3, v4, v5}, Lmyclass/Util;->showDialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0

    .line 160
    :sswitch_7
    iget-object v3, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v3, Ljava/lang/Integer;

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v1

    .line 161
    .local v1, "goodsid":I
    iget-object v3, p0, Lcom/example/m6shop/ShopPsActivity$4;->this$0:Lcom/example/m6shop/ShopPsActivity;

    # getter for: Lcom/example/m6shop/ShopPsActivity;->list:Ljava/util/List;
    invoke-static {v3}, Lcom/example/m6shop/ShopPsActivity;->access$0(Lcom/example/m6shop/ShopPsActivity;)Ljava/util/List;

    move-result-object v3

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lbean/Pstimebean;

    invoke-virtual {v3}, Lbean/Pstimebean;->getChoice()Ljava/lang/String;

    move-result-object v3

    const-string v4, "0"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 162
    iget-object v3, p0, Lcom/example/m6shop/ShopPsActivity$4;->this$0:Lcom/example/m6shop/ShopPsActivity;

    # getter for: Lcom/example/m6shop/ShopPsActivity;->list:Ljava/util/List;
    invoke-static {v3}, Lcom/example/m6shop/ShopPsActivity;->access$0(Lcom/example/m6shop/ShopPsActivity;)Ljava/util/List;

    move-result-object v3

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lbean/Pstimebean;

    const-string v4, "1"

    invoke-virtual {v3, v4}, Lbean/Pstimebean;->setChoice(Ljava/lang/String;)V

    .line 175
    :goto_1
    iget-object v3, p0, Lcom/example/m6shop/ShopPsActivity$4;->this$0:Lcom/example/m6shop/ShopPsActivity;

    iget-object v3, v3, Lcom/example/m6shop/ShopPsActivity;->pa:Ladapter/PsAdapter;

    invoke-virtual {v3}, Ladapter/PsAdapter;->notifyDataSetChanged()V

    goto/16 :goto_0

    .line 168
    :cond_1
    iget-object v3, p0, Lcom/example/m6shop/ShopPsActivity$4;->this$0:Lcom/example/m6shop/ShopPsActivity;

    # getter for: Lcom/example/m6shop/ShopPsActivity;->list:Ljava/util/List;
    invoke-static {v3}, Lcom/example/m6shop/ShopPsActivity;->access$0(Lcom/example/m6shop/ShopPsActivity;)Ljava/util/List;

    move-result-object v3

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lbean/Pstimebean;

    const-string v4, "0"

    invoke-virtual {v3, v4}, Lbean/Pstimebean;->setChoice(Ljava/lang/String;)V

    goto :goto_1

    .line 120
    nop

    :sswitch_data_0
    .sparse-switch
        0x0 -> :sswitch_0
        0x1 -> :sswitch_2
        0x2 -> :sswitch_1
        0x3 -> :sswitch_3
        0x4 -> :sswitch_4
        0xe -> :sswitch_5
        0x10 -> :sswitch_6
        0x2a -> :sswitch_7
    .end sparse-switch
.end method
